<?xml version="1.0" encoding="utf-8"?>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ page contentType="text/html; charset=UTF-8"%>

<%@include file="loading.jsp"%>
<script type="text/javascript">
		     function okButton(){
     
       //Parametros do sistema
     };
   
		
</script>
<sj:dialog id="mybuttondialog"
	buttons="{'OK':function() {okButton();$(this).dialog('close');},'Cancel':function() { $(this).dialog('close'); } }"
	autoOpen="false" modal="true" title="Excluir Registro" effect="explode"
	hideEffect="explode">
     Resetar Parâmetros?
    </sj:dialog>



<div id="divsumir" name="divsumir"><s:form
	action="manterparametros!saveParams" theme="simple" method="post"
	id="form">
	<s:if test="%{parametro.id != null}">
		<s:hidden name="parametro.id" />
		<s:hidden name="parametro.dtCriacao" />
	</s:if>
	<div id="nav"><!-- skiplink anchor: navigation --> <a
		id="navigation" name="navigation"></a>

	<div class="hlist">
	<ul>

		<li><sj:a onclick="divSumir();" id="ajaxformlink" formIds="form"
			targets="main" indicator="indicator">Salvar
    		</sj:a></li>

		<li><sj:a openDialog="mybuttondialog">Resetar</sj:a></li>



	</ul>
	</div>
	</div>
	<s:actionerror cssClass="ui-state-error ui-corner-all"
		cssStyle="padding: 0pt 0.7em;" />
	<s:actionmessage cssClass="ui-state-highlight ui-corner-all"
		cssStyle="padding: 0pt 0.7em; margin-top: 20px;" />



	<fieldset class="ui-widget ui-widget-content ui-corner-all"
		style="margin: 10px"><legend
		class="ui-state-default ui-corner-all">&nbsp;&nbsp;&nbsp;Parâmetros
	do Sistema&nbsp;&nbsp;&nbsp;</legend> <br>
	<table style="align: left; width: 100%">
		<tr>


			<td><s:label value="Título:" /></td>
			<td><s:textfield name="parametro.tituloSistema"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Versão:" /></td>
			<td><s:textfield name="parametro.versao" cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Nº de items nas listagem:" /></td>
			<td><s:textfield name="parametro.tamListagem"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Servidor SMTP de email:" /></td>
			<td><s:textfield name="parametro.smtpServer"
				cssStyle="width: 250px" /></td>
		</tr>
		<tr>
			<td><s:label value="Porta SMTP:" /></td>
			<td><s:textfield name="parametro.portaSMTP"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Servidor POP de email:" /></td>
			<td><s:textfield name="parametro.popServer"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Porta POP:" /></td>
			<td><s:textfield name="parametro.portaPOP"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Conta de email:" /></td>
			<td><s:textfield name="parametro.contaEmail"
				cssStyle="width: 250px" /></td>
		</tr>
		<tr>
			<td><s:label value="Login da conta de email:" /></td>
			<td><s:textfield name="parametro.loginMail"
				cssStyle="width: 250px" /></td>
		</tr>
		<tr>
			<td><s:label value="Senha da conta de email:" /></td>
			<td><s:textfield name="parametro.senhaMail"
				cssStyle="width: 250px" /></td>
		</tr>

		<tr>
			<td><s:label value="Prefixo de Título de email:" /></td>
			<td><s:textfield name="parametro.prefixoTituloMail"
				cssStyle="width: 250px" /></td>
		</tr>
		<tr>
			
			<td><script type="text/javascript">
				$(function(){
					$('.jquery_ckeditor').ckeditor();
				});	
				</script> 
		<sj:textarea cssClass="jquery_ckeditor" cols="80" label="Exibição Home"
				name="parametro.feiraHome" rows="10"></sj:textarea></td>
		</tr>


	</table>
	</fieldset>

</s:form></div>


